#-*-coding:utf-8-*-
from app import app, login_manager
from flask import render_template,request, jsonify, session, g
from flask_login import login_user, login_required, logout_user, current_user
from func import *
from models import *

# login_manager.login_view = "login"
# login_manager.login_message = 'Please Login'

# @login_manager.user_loader
# def load_user(id):
#     return User.query.get(int(id))
#     

# @app.before_request
# def hook():
# 	if current_user.is_authenticated:
# 		g.uid = current_user.id
# 		g.name = current_user.name
# 		g.nickname = current_user.nickname

@app.route('/')
def index():
    return 'Welcome To Use Flask'